package com.jzg.sys.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色资源
 * </p>
 *
 * @author lzp
 * @since 2019-03-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SEC_ROLE_RESOURCE")
public class SecRoleResource extends Model<SecRoleResource> {

    private static final long serialVersionUID = 1L;

    /**
     * ROLE_RESOURCE_ID
     */
    @TableId("ROLE_RESOURCE_ID")
    private String roleResourceId;

    /**
     * 资源ID
     */
    @TableField("RESOURCE_ID")
    private String resourceId;

    /**
     * 角色ID
     */
    @TableField("ROLE_ID")
    private String roleId;


    @Override
    protected Serializable pkVal() {
        return this.roleResourceId;
    }

}
